﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Person
    {
        private int id;
        private string name;
        private string sex;
        private string cardid;
        private string tel;

        public int Id
        {
            get { return this.id; }
            set { this.id = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public string Sex
        {
            get { return this.sex; }
            set { this.sex = value; }
        }
        public string Cardid
        {
            get { return this.cardid; }
            set { this.cardid = value; }
        }
        public string Tel
        {
            get { return this.tel; }
            set { this.tel = value; }
        }
        public Person(string name, int id, string sex, string cardid, string tel)
        {
            Name = name;
            Id = id;
            Sex = sex;
            Cardid = cardid;
            Tel = tel;
        }
        public void GetData()
        {
            Console.WriteLine("我是{0},我的学号是{1},我是{2}的,我的身份证号是{3},我的电话是{4}",Name,Id,Sex,Cardid,Tel);
        }
    }
}
